package com.sysofstudent.service;

import com.sysofstudent.dao.ScoreRepository;
import com.sysofstudent.po.Score;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class ScoreServiceImpl implements ScoreService {


    @Autowired
    private ScoreRepository scoreRepository;


    @Override
    public List<Score> findByCourse_id(long course_id) {
        return scoreRepository.findByCourse(course_id);
    }

    @Override
    public List<Score> findByNumber(String number) {
        return scoreRepository.findAllByNumber(number);
    }
}

